//
//  NSObject+WLNotification.m
//  xiacai
//
//  Created by 王亮 on 2018/1/19.
//  Copyright © 2018年 TBS. All rights reserved.
//

#import "NSObject+WLNotification.h"

@implementation NSObject (WLNotification)
//支付通知
-(void)wl_notificationName:(NSString *)notificationName obj:(id)obj user:(NSDictionary *)dic{
    [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:notificationName object:obj userInfo:dic]];
}
-(void)wl_addObserver:(id)Observer selector:(SEL)selector name:(NSString *)notificationName object:(id)object{
    [[NSNotificationCenter defaultCenter] addObserver:Observer selector:selector name:notificationName object:object];
}
-(void)wl_removeObserver:(id)Observer name:(NSString *)notificationName object:(id)object{
    [[NSNotificationCenter defaultCenter] removeObserver:Observer name:notificationName object:object];
}
@end
